const express = require('express');

let app = express();

// 获取查询字符串信息
// 路径 localhost/info?name=laowang&age=18
app.get('/info',(req,res)=>{
    //express
    console.log(req.query); //{ name: 'laowang', age: '18' }
    console.log(req.query.name); //laowang

    res.end('end');
});

app.listen(80,()=>{
    console.log("80端口执行成功");
});